package com.chaoyi.dao.mysql;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.chaoyi.model.ModelInfo;

public interface ModelInfoMapper {
	/**
	 * 查询父列表
	 * @param offset 页号
	 * @param limit 每页条数
	 * @return
	 */
	public List<ModelInfo> findList(@Param("pageStat")String offset,@Param("pageStop")String limit);
	
	public int checkModelInfoName(@Param("modelName")String modelName,@Param("modelId")int modelId);

	public int saveModelInfoParent(@Param("modelInfo")ModelInfo modelInfo);

	public ModelInfo findModel(@Param("modelId")int modelId);

	public int updateModelInfoParent(@Param("modelInfo")ModelInfo modelInfo);

//	public int saveDictionaryChile(@Param("dictionary")Dictionary dictionary);

	public List<ModelInfo> findChildrenList(@Param("parentId") int parentId);

	public List<ModelInfo> findAllModelInfo();
}
